kick a habit

Also, kick it; kick the habit. Overcome or give up habitual use, especially of narcotics. For example, Smoking is addictive; it's not easy to kick, or If he doesn't kick the habit, he may not make it through school. This idiom uses kick in the sense of “get rid of.” [ First half of 1900s ]